﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using java.util;

namespace Game.templates.spawn
{
    public class SpawnTemplate
    {
        private PeriodOfDay _periodOfDay;
	  
	    private int _count;
	  
	    private int _respawn;
	   
	    private int _respawnRandom;
        private List _npcList = new ArrayList(1);
	   
	    private List _spawnRangeList = new ArrayList(1);
        public SpawnTemplate(PeriodOfDay periodOfDay, int count, int respawn, int respawnRandom)
        {
            _periodOfDay = periodOfDay;
            _count = count;
            _respawn = respawn;
            _respawnRandom = respawnRandom;
        }
        public void addSpawnRange(SpawnRange range)
        {
            _spawnRangeList.add(range);
        }
        public SpawnRange getSpawnRange(int index)
        {
            return (SpawnRange) _spawnRangeList.get(index);
        }
        public void addNpc(SpawnNpcInfo info)
        {
            _npcList.add(info);
        }
        public SpawnNpcInfo getNpcId(int index)
        {
            return (SpawnNpcInfo) _npcList.get(index);
        }
        public int getNpcSize()
        {
            return _npcList.size();
        }
        public int getSpawnRangeSize()
        {
            return _spawnRangeList.size();
        }
        public int getCount()
        {
            return _count;
        }
        public int getRespawn()
        {
            return _respawn;
        }
        public int getRespawnRandom()
        {
            return _respawnRandom;
        }
        public PeriodOfDay getPeriodOfDay()
        {
            return _periodOfDay;
        }
    }
}
